package com.fhz.a2102high6

/**
 * 时间:2023/9/12
 * @author Mr.Feng
 * 简述: TODO
 */
class Game(
    var name:String,
    var age:Int
) {
    constructor(_name: String):this(_name, age = 20){
        name = _name.toUpperCase()
    }

    constructor(age: Int):this(name="12",age)
}

fun main(){
    val game = Game("王者",4)
    val game1 = Game("王者1")
    val game2 = Game(12)

}